<template>
	<view class="content">
		<view class="select-item" @click="handleNavTo(1)">
			<image src="../../static/life.png"></image>
		</view>
		<view class="select-item" @click="handleNavTo(2)">
			<image src="../../static/merchant.png"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onNavigationBarButtonTap(e) {
			if(e.type =='back'){
				window.history.go(-1);
			}
		},
		onLoad() {

		},
		methods: {
			handleNavTo(idx){
				uni.navigateTo({
				    url: '/pages/index/register?id='+idx
				});
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding-top: 30rpx;
	}

	.select-item image {
		width: 650rpx;
		height: 240rpx;
	}
	
	.select-item {
		margin: 20rpx 0rpx;
	}
</style>
